//
//  TRMathTools.m
//  iOSBaseFramework
//
//  Created by user on 2020/6/19.
//  Copyright © 2020 com.taylor. All rights reserved.
//

#import "TRMathTools.h"

@implementation TRMathTools

+(id)shareMathTool {
    static TRMathTools *mathTool;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        mathTool = [[TRMathTools alloc] init];
    });
    
    return mathTool;
}

+(int)getRandomNubmer:(int)from To:(int)to {
    return (int)(from + arc4random() % (to - from + 1));
}


@end
